import request from '@/utils/request'

export function creatNavBar(data) {
  return request({
    url: '/juanbusiness/app-nav-bar/add',
    method: 'post',
    data
  })
}

export function findNavBar(page,size,name,applicationId) {
  return request({
    url: '/juanbusiness/app-nav-bar/findPage',
    method: 'get',
    params: {
        page: page,
        size: size,
        name: name,
        applicationId: applicationId,
    }
  })
}

export function updateNavBar(data) {
  return request({
    url: '/juanbusiness/app-nav-bar/edit',
    method: 'put',
    data
  })
}

export function releaseNavBar(data) {
    return request({
      url: '/juanbusiness/app-nav-bar/enable',
      method: 'put',
      data
    })
  }

export function delNavBar(id) {
  return request({
    url: '/juanbusiness/app-nav-bar/del',
    method: 'delete',
    params: {id: id}
  })
}
